﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BootstrapBlazorApp.Shared.Data.SYS
{
    public class ResponseModel<T> 
    {
            /// <summary>
            ///  状态码
            /// </summary>
            public int statusCode { get; set; }

            /// <summary>
            ///  数据
            /// </summary>
            public T data { get; set; }

            /// <summary>
            ///  是否成功
            /// </summary>
            public bool succeeded { get; set; }

            /// <summary>
            ///  错误消息
            /// </summary>
            public string errors { get; set; }

            /// <summary>
            ///  扩展
            /// </summary>
            public string extras { get; set; }

            /// <summary>
            ///  时间戳
            /// </summary>
            public int timestamp { get; set; }
    }

    public class ResponseModel
    {
        /// <summary>
        ///  状态码
        /// </summary>
        public int statusCode { get; set; }

        /// <summary>
        ///  数据
        /// </summary>
        public string data { get; set; }

        /// <summary>
        ///  是否成功
        /// </summary>
        public bool succeeded { get; set; }

        /// <summary>
        ///  错误消息
        /// </summary>
        public string errors { get; set; }

        /// <summary>
        ///  扩展
        /// </summary>
        public string extras { get; set; }

        /// <summary>
        ///  时间戳
        /// </summary>
        public int timestamp { get; set; }
    }
}
